package ad.android.service;

import ad.android.dto.AdDto;
import ad.android.dto.RequestAdJsonDto;
import ad.android.exception.ServiceException;
import ad.android.model.Ad;

public interface IAdService {

	/**
	 * 根据请求的JsonDto 获取广告
	 * @param requestAdJsonDto
	 * @return
	 * @throws ServiceException
	 */
	public AdDto findAd(RequestAdJsonDto requestAdJsonDto)throws ServiceException;

	/**
	 * 查找id为adId的AD对象
	 * @param adId
	 * @return
	 * @throws ServiceException
	 */
	public Ad findAd(Long adId)throws ServiceException;

}
